package com.ruoyi.attendance.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 考勤信息对象 attendance_record
 * 
 * @author Weiney
 * @date 2025-03-03
 */

public class AttendanceRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 当前上课的课程记录ID */
    @Excel(name = "当前上课的课程记录ID")
    private Long courseRecordId;

    /** 课程ID */
    @Excel(name = "课程ID")
    private Long courseId;

    /** 课程名称 */
    @Excel(name = "课程名称")
    private String courseName;

    /** 课程星期（周几上课） */
    @Excel(name = "课程星期", readConverterExp = "0=周一,1=周二,2=周三,3=周四,4=周五,5=周六,6=周日")
    private Long courseWeek;

    /** 课程节数（第几节上课） */
    @Excel(name = "课程节数", readConverterExp = "0=1-2节,1=3-4节,2=5-6节,3=7-8节,4=9-10节")
    private Long courseSequence;

    /** 课程教室 */
    @Excel(name = "课程教室")
    private String classroom;

    /** 学生ID */
    @Excel(name = "学生ID")
    private Long userId;

    /** 部门ID */
    @Excel(name = "部门ID")
    private Long deptId;

    /** 用户账号 */
    @Excel(name = "用户账号")
    private String userName;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String nickName;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phonenumber;

    /** 考勤时长 */
    @Excel(name = "考勤时长", readConverterExp = "0=3分钟,1=5分钟,2=10分钟")
    private Long attendanceTime;

    /** 考勤类型 */
    @Excel(name = "考勤类型", readConverterExp = "0=扫码签到,1=人脸识别")
    private Long attendanceType;

    /** 签到时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "签到时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date signTime;

    /** 签到状态 */
    @Excel(name = "签到状态", readConverterExp = "0=准时,1=迟到,2=补签,3=旷课,4=请假,5=未签")
    private Long signStatus;

    public void setCourseRecordId(Long courseRecordId)
    {
        this.courseRecordId = courseRecordId;
    }

    public Long getCourseRecordId()
    {
        return courseRecordId;
    }
    public void setCourseId(Long courseId)
    {
        this.courseId = courseId;
    }

    public Long getCourseId()
    {
        return courseId;
    }
    public void setCourseName(String courseName)
    {
        this.courseName = courseName;
    }

    public String getCourseName()
    {
        return courseName;
    }
    public void setCourseWeek(Long courseWeek)
    {
        this.courseWeek = courseWeek;
    }

    public Long getCourseWeek()
    {
        return courseWeek;
    }
    public void setCourseSequence(Long courseSequence)
    {
        this.courseSequence = courseSequence;
    }

    public Long getCourseSequence()
    {
        return courseSequence;
    }
    public void setClassroom(String classroom)
    {
        this.classroom = classroom;
    }

    public String getClassroom()
    {
        return classroom;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setNickName(String nickName)
    {
        this.nickName = nickName;
    }

    public String getNickName()
    {
        return nickName;
    }
    public void setPhonenumber(String phonenumber)
    {
        this.phonenumber = phonenumber;
    }

    public String getPhonenumber()
    {
        return phonenumber;
    }
    public void setAttendanceTime(Long attendanceTime)
    {
        this.attendanceTime = attendanceTime;
    }

    public Long getAttendanceTime()
    {
        return attendanceTime;
    }
    public void setAttendanceType(Long attendanceType)
    {
        this.attendanceType = attendanceType;
    }

    public Long getAttendanceType()
    {
        return attendanceType;
    }
    public void setSignTime(Date signTime)
    {
        this.signTime = signTime;
    }

    public Date getSignTime()
    {
        return signTime;
    }
    public void setSignStatus(Long signStatus)
    {
        this.signStatus = signStatus;
    }

    public Long getSignStatus()
    {
        return signStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("courseRecordId", getCourseRecordId())
                .append("courseId", getCourseId())
                .append("courseName", getCourseName())
                .append("courseWeek", getCourseWeek())
                .append("courseSequence", getCourseSequence())
                .append("classroom", getClassroom())
                .append("userId", getUserId())
                .append("deptId", getDeptId())
                .append("userName", getUserName())
                .append("nickName", getNickName())
                .append("phonenumber", getPhonenumber())
                .append("attendanceTime", getAttendanceTime())
                .append("attendanceType", getAttendanceType())
                .append("signTime", getSignTime())
                .append("signStatus", getSignStatus())
                .append("remark", getRemark())
                .toString();
    }
}